#!/bin/bash

resettem=$(tput sgr0)
declare -A ssharray
i=0
number=""

for script_file in `ls -I "monitor_man.sh" ./`;do
		echo -e "\e[1;35m" "The script file:" ${i} '==>' ${resettem} ${script_file}
		grep "zhushi:" ${script_file}
		ssharray[$i]=${script_file}
		number="${number} | ${i}" #拼接子符
		i=$(( i+1 ))
done

#while true
#do	
#	read -t 30 -p "Please input a number[ ${number} ]:" file
#	if [[ ! ${file} =~ ^[0-9]+ ]];then
#		exit 0
#	fi
#	/bin/sh ./${ssharray[$file]}
#done
